<template>
      <el-card>
        <p style="font-size: xx-large">我的工资记录</p>
        <el-card>

        <el-table
        :data="salarys"
        style="width: 100%"
        max-height="380">

        <el-table-column
          prop="sId"
          label="员工号"
          width="auto">

        </el-table-column>
        <el-table-column
          prop="baseSalary"
          label="基本工资(元)"
          width="auto">
        </el-table-column>
        <el-table-column
          prop="checkOn"
          label="考勤情况(百分比)"
          width="auto">
        </el-table-column>

        <el-table-column
          prop="projectBonus"
          label="项目提成(元)"
          width="auto">

        </el-table-column>

        <el-table-column
          prop="salaryMonth"
          label="发放时间"
          width="auto">

        </el-table-column>

        <el-table-column
          prop="sum"
          label="共计(员工)"
          width="auto">
        </el-table-column>
      </el-table>
        </el-card>
        <template>

        </template>
    </el-card>

</template>

<script>
  import Global from '../../utils/global'

  export default {
    name: 'MWage',
    data(){
      return {
        glo:new Global(),
        salarys:[
          {
          }
        ]
      }

    },
    methods:{
      initPage(res){
        this.salarys = this.salarys.concat(res.data.wageList)
        console.log(salarys)
      }
    },
    mounted () {

      this.glo.sendDate(this.glo.server+'staff/getWage',
        {
          sId:this.glo.getData('StaffInfo').sId
        },this.initPage,"GET"
      )
    }
  }
</script>

<style scoped>

</style>
